#ifndef TIMER_H_
#define TIMER_H_
/*******************************************************************************
 * File name: 		timer.h
 * Description: 
 * Project: 		_framework
 * Target: 			LPC1788
 * Compiler: 		arm-none-eabi-gcc
 * Date: 			Sep 20, 2012
 * Author: 			kuba
 * Based on: 		---
 ******************************************************************************/

/*==============================================================================
 Includes
==============================================================================*/
# include "typedef.h"
# include "irq.h"
/*==============================================================================
 Defines
==============================================================================*/

/*==============================================================================
 Types
==============================================================================*/

/*==============================================================================
 Globals
==============================================================================*/

/*==============================================================================
 Global function prototypes
==============================================================================*/
/*------------------------------------------------------------------------------
 function name: timer0Init
 description:	init timer 0
 parameters:	time after which interrupt will be fired and service called
 returned value: none
------------------------------------------------------------------------------*/
void timer0Init (const uint32 time, const enum irqPriority priority, void (*const service) (void));

/*------------------------------------------------------------------------------
 function name: timer1Init
 description:	init timer 1
 parameters:	time after which interrupt will be fired and service called
 returned value: none
------------------------------------------------------------------------------*/
void timer1Init (const uint32 time, const enum irqPriority priority, void (*const service) (void));

/*------------------------------------------------------------------------------
 function name: timer2Init
 description:	init timer 2
 parameters:	time after which interrupt will be fired and service called
 returned value: none
------------------------------------------------------------------------------*/
void timer2Init (const uint32 time, const enum irqPriority priority, void (*const service) (void));

/*------------------------------------------------------------------------------
 function name: timer3Init
 description:	init timer 3
 parameters:	time after which interrupt will be fired and service called
 returned value: none
------------------------------------------------------------------------------*/
void timer3Init (const uint32 time, const enum irqPriority priority, void (*const service) (void));

/******************************************************************************
* END OF FILE
******************************************************************************/
#endif /* TIMER_H_ */
